/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description:
 */
package com.lzq.builder.improved;

public class SComputerBuilder extends ComputerBuilder {
    private Computer computer = new Computer();

    @Override
    void buildCpu() {
        computer.setCpu("i9 9900");
    }

    @Override
    void buildMoBo() {
        computer.setMoBo("微星");
    }

    @Override
    void buildDisk() {
        computer.setDisk("2tssd");
    }

    @Override
    void buildRAM() {
        computer.setRAM("8g");
    }

    @Override
    void buildPower() {
        computer.setPower("1000w");
    }

    @Override
    Computer getComputer() {
        System.out.println(computer);
        return computer;
    }
}
